package com.yjd.comm.app.service;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.app.model.PushRegidModel;

import java.util.List;
import java.util.Map;

/**
 * <b>description</b>：推送服务业务接口<br>
 * <b>time</b>：2017-06-27 08:55:53 <br>
 * <b>author</b>：  yangchangyan@yijiedai.com
 */
public interface IPushRegidService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public PushRegidModel insert(PushRegidModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(PushRegidModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int delete(long id) throws Exception;


	/**
	 * 根据id更新,大于等于1表示成功，其他失败
	 *
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int updateByMap(PushRegidModel model) throws Exception;

	/**
	 * 查询推送id
	 * @param param
	 * @return
	 * @throws Exception
	 */
	public List<String> queryRegids(Map<String,Object> param)throws Exception;

}
